for x in range(1,10):
  for y in range(0,10):
   for z in range(0,10):
      s1 = x*1000+y*10+z
      s2 = x**3+y**3+z**3
      if s1==s2:
       print("水仙花数有：%ld"  %s1)